package com.ms.service.module.commonsettings;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.Id;
import javax.persistence.Table;

import com.xpec.c4.db.model.basic.BasicModel;
@Entity
@org.hibernate.annotations.Entity(dynamicInsert=true,dynamicUpdate=true)
@Table(name = CommonSettingsModel.modelName)
public class CommonSettingsModel extends BasicModel{

	/**
	 * 
	 */
	private static final long serialVersionUID = 5875290147600718021L;

	public static final String modelName = "common_settings";
	
	private CommonSettingType settingType;
	
	private String settingContent;
	
	private Date modifyTime;
	
	private Date createTime;

	@Id
	@Enumerated(EnumType.STRING)
	public CommonSettingType getSettingType() {
		return settingType;
	}

	public void setSettingType(CommonSettingType settingType) {
		this.settingType = settingType;
	}

	@Column(columnDefinition = "TEXT")
	public String getSettingContent() {
		return settingContent;
	}

	public void setSettingContent(String settingContent) {
		this.settingContent = settingContent;
	}

	public Date getModifyTime() {
		return modifyTime;
	}

	public void setModifyTime(Date modifyTime) {
		this.modifyTime = modifyTime;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	
}
